import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<DeviceLogDetailState> buildReducer() {
  return asReducer(
    <Object, Reducer<DeviceLogDetailState>>{
      DeviceLogDetailAction.action: _onAction,
      DeviceLogDetailAction.refresh: _onAction,
    },
  );
}

DeviceLogDetailState _onAction(DeviceLogDetailState state, Action action) {
  final DeviceLogDetailState newState = state.clone();
  return newState;
}
